<?php
header ( "Content-type:text/html;charset=utf-8" );
include_once './CTG_DBLib.min.php';
try {
	$DB = new CTG_DBLib ( array (
			'DB_NAME' => 'wl', // 数据库名
			'DB_USER' => 'root', // 数据库用户名
			'DB_PWD' => '', // 密码
			'TABLE' => 'wl_user'  // 默认要操作的数据表
		) );
	/*
	 * $re = $DB->update ( array ( 'em_id' => 80, 'account' => 'ccccc' ) ); $re = $DB->delete ( array ( 'em_id' => 80 ) );
	 */
	$re = $DB->where ( array (
			'and' => array (
					'account' => 'ccccc',
					'id' => 1 
			) 
	) )->limit ( 10 )->find ();
	$re = $DB->rawQuery ( "SELECT * FROM wl_user WHERE ( `account` =? AND `id` = ? ) LIMIT 10", array (
			'ccccc',
			1 
	) );
	echo '<br/>';
	echo $DB->querySql ();
} catch ( Exception $e ) {
	echo $e->getMessage ();
}
